package com.woniuxy.services;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entitys.TbMalfunction;
import com.woniuxy.entitys.TbOrder;
import org.apache.ibatis.annotations.Param;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * @Classname OrderListService
 * @Date 2024/1/10 15:20
 */
public interface OrderListService {
    //查看所有订单信息
    PageInfo<TbOrder> selAllOrderList(int pageNum,int pageSize);

    PageInfo<TbOrder> selOrderByHospital(Integer pageNum, Integer pageSize, Integer key1);

    PageInfo<TbOrder> selOrderByDepartment(Integer pageNum, Integer pageSize, Integer key2);

    int updateOrderSoftdel(Integer oid);
    //计算租床时间
//    String getDate(int oid) throws ParseException;
    PageInfo<TbOrder> getOrderBySectionSome(String token,int pageNum, int pageSize,String onum,String bnum,String cname,Integer orderstatus);

    List<TbOrder> getAllByCascade(Integer pageNum, Integer pageSize, List<Integer> cascadeValue);
    int getAllactualpay();
}
